Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added trends breakdown by cohort #18028

Merged
merged 5 commits into from
Oct 17, 2023
Merged

Conversation

Gilbert09
Copy link
Member

Problem

Changes

  • Adds the ability to breakdown by cohorts
  • This will run n queries, where n is the count of cohorts selected in the frontend. This is due to the HogQL joins of Cohorts not returning the cohort ID, which is required when selecting the multiple series from the clickhouse results, thus having to inject the cohort ID at query time instead on a per-query basis

How did you test this code?

  • Browser clicky click

@Gilbert09 Gilbert09 requested a review from mariusandra October 17, 2023 10:02
@Gilbert09 Gilbert09 changed the title Added trends breakdown by cohort feat: added trends breakdown by cohort Oct 17, 2023
@posthog-bot
Copy link
Contributor

Hey @Gilbert09! 👋
This pull request seems to contain no description. Please add useful context, rationale, and/or any other information that will help make sense of this change now and in the distant Mars-based future.

Base automatically changed from feat/hogql-breakdowns to master October 17, 2023 13:14
Copy link
Collaborator

@mariusandra mariusandra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool and makes sense to me. Speaking of cohorts though, there's a PR out that changes their behaviour just a bit. Hopefully this will keep on working

@Gilbert09 Gilbert09 enabled auto-merge (squash) October 17, 2023 15:08
@Gilbert09 Gilbert09 merged commit acf30da into master Oct 17, 2023
67 checks passed
@Gilbert09 Gilbert09 deleted the feat/breakdown-by-cohort branch October 17, 2023 15:42
daibhin pushed a commit that referenced this pull request Oct 23, 2023
* Fixed missing param when building Breakdown

* Added support for breakdowns with hogql expressions

* Added trends breakdown by cohort

* Remove None valued keys from the filter obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants